import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-07-12
 * Time: 10:28
 */
public class Test {
    Deque<Integer> stack = new ArrayDeque<>();//栈的顺序实现
    Deque<Integer> stack2 = new LinkedList<>();//栈的链式实现
    Deque<Integer> deque = new ArrayDeque<>();//双端队列的顺序实现
    Deque<Integer> deque2 = new LinkedList<>();//双端队列的链式实现
    Queue<Integer> queue = new ArrayDeque<>();//队列的顺序实现
    Queue<Integer> queue2 = new LinkedList<>();//队列的链式实现


    ArrayList<Integer> list = new ArrayList<>();
    public void test() {
        stack.push(1);
        queue.offer(1);
        queue.poll();
        deque.pollLast();
        stack.push(1);
        deque.push(2);
    }
}
